<template>
  <div class="playVideo">
    <h1>中二病也要谈恋爱</h1>
    <p>简介：谁没中二病，青春年少不挥洒汗水不行啊，前进吧少年</p>
    <div class="video-box">
      <div class="box-content">
        <video id="myVideo" class="video-js">
          <source src="../../static/video/2.1_batch.mp4" type="video/mp4" />
        </video>
      </div>
      <div class="haoJs">
        <h2>播放列表</h2>
        <ul>
          <li class="active">1</li>
          <li>2</li>
          <li>3</li>
          <li>4</li>
        </ul>
      </div>
    </div>
  </div>
</template>
<script setup>
import { defineExpose } from 'vue'
const a = 1
const b = 2
defineExpose({
    a
})
</script>
<style scoped lang="less">
.playVideo {
  width: 1200px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  padding: 20px;
  margin: 20px auto;

  h1 {
    color: cornflowerblue;
  }

  p {
    font-size: 16px;
    line-height: 60px;
  }

  .video-box {
    width: 100%;
    display: flex;

    .box-content {
      flex: 1;
      height: 555px;
      margin-right: 10px;
    }
    .haoJs {
      width: 200px;
      height: 555px;
      display: flex;
      flex-direction: column;
      background: #ffffff;
      padding: 0 10px;
      box-sizing: border-box;

      h2 {
        font-size: 16px;
        padding: 12px 0;
      }
      ul {
        flex: 1;
        overflow: auto;

        li {
          line-height: 35px;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          padding-left: 8px;

          &:hover {
            background: #ebebeb;
          }

          &.active {
            color: #007fff;
          }
        }
      }
    }
  }
}
</style>
